<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
		<script src="./Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!--网页头部、包含灰条、搜索区、导航栏-->
		<header>
			<!--灰色条形区域-->
			<div id="top_bar">
				<div class="top_center">
					<!--灰条左侧-->
<!--					可以在这打印_SESSION看-->
					<?php if(!isset($_SESSION['userinfo']['username'])):?>
						<div class="fl top_site">
<!--							<a target="_blank" href="javascript:;">收货地</a>-->
						</div>
						<div class="fl top_user">
							<a target="_blank" href="login.html">[登陆]</a>
							<span>|</span>
							<a target="_blank" href="reg.html">[注册]</a>
						</div>
					<?php else:?>
						<div class="fl top_site">
							欢迎<a target="_blank" style="color: red" href="p_{{$_SESSION['userinfo']['uid']}}.html"><?php echo $_SESSION['userinfo']['username']; ?></a>!
							 &nbsp;&nbsp;|<a target="_blank" style="color: red" href="p_{{$_SESSION['userinfo']['uid']}}.html">个人中心</a>&nbsp;&nbsp;&nbsp;|<a href="{{U('User/out')}}">[退出]</a>
						</div>
					<?php endif?>
					<!--灰条右侧-->
					<div class="fr top_nav">
<!--						<a href="">我的订单</a>-->
					</div>
				</div>
			</div>
			<!--图片广告-->
			<a id="pic" target="_blank" href="d_{{53}}_{{35}}.html"></a>
			<!--头部栏区域-->
			<div id="head_bar">
				<div class="h_center">
					<!--logo-->
					<div class="fl headbar_logo">
						<a href="index.html"><img src="./Public/Home/img/icon11.png"/></a>
					</div>
					<div class="fl headbar_slogan">
						<a href="javascript:;" style="cursor: default"><img src="./Public/Home/img/icon13.png"></a>
					</div>
					<!--中部搜索-->
					<div class="fl headbar_search">
						<div class="search_box">
							<form action="{{U('Price/index')}}" method="post">
								<input type="text" name="search" id="" class="fl search_input" value="" />
								<input type="submit" class="fl search_btn" value="搜索"/>
							</form>
						</div>
						<div class="search_words">
							<span>热门搜索:</span>
							{{foreach from="$hotsouData" value="$u"}}
							<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html" class="link">{{$u['coname']}}</a>
							{{endforeach}}
						</div>
					</div>
					<!--购物车-->
					<div class="fr buy_car_box">
						<div class="my_car">
							<span class="silder">{{if value="isset($_SESSION['cart']['total_rows'])"}}<b>{{$_SESSION['cart']['total_rows']}}</b>{{else}}<b>0</b>{{endif}}</span>
							<a href="cart.html">我的购物车</a>
						</div>
<!--						<div class="car_empty">-->
<!--							快去选择物品吧！-->
<!--						</div>-->
						<div class="car_cont" id="cart_box"></div>
						<p style="color: #999; text-align: center;">累计陪伴84万+用户</p>
					</div>
				</div>
			</div>
			<!--头部栏区域结束-->
		<!--导航条区域开始-->
		<div id="nav_bar">
			<div class="nav_center">
				<ul class="navbar_list">
					<li class="item on" style="cursor:default"><a href="javascript:;" style="cursor:default" class="link">手机商城</a></li>
					{{foreach from="$cateName" value="$u"}}
					<li class="item"><a target="_blank" href="c_{{$u['cid']}}.html" class="link">{{$u['cname']}}</a></li>
					{{endforeach}}
				</ul>
			</div>
		</div>
		<!--导航条区域结束-->
		</header>
		<!--网页头部、包含灰条、搜索区、导航栏-->
		<!--中部大图轮播区域-->
		<div id="center">
			<div class="img_center">
				<div class="home_wrap">
					<!--菜单栏开始-->
					<div class="fl home_nav">
						<p class="nav_head">全部商品分类</p>
						<ul class="nav_list">
							<li class="bar">
								<p class="nav_title type1">价格分类</p>
								<div class="nav_page">
									<div class="nav_container">
										<p class="nav_name">价格选择</p>
										<ul class="nav_type">
											<li class="item"><a target="_blank" href="pr_{{1}}_{{499}}.html" class="link">1-499</a></li>
											<li class="item"><a target="_blank" href="pr_{{500}}_{{999}}.html" class="link">500-999</a></li>
											<li class="item"><a target="_blank" href="pr_{{1000}}_{{1999}}.html" class="link">1000-1999</a></li>
											<li class="item"><a target="_blank" href="pr_{{2000}}_{{2999}}.html" class="link">2000-2999</a></li>
											<li class="item"><a target="_blank" href="pr_{{3000}}_{{3999}}.html" class="link">3000-3999</a></li>
											<li class="item"><a target="_blank" href="pr_{{4000}}_{{4999}}.html" class="link">4000-4999</a></li>
											<li class="item"><a target="_blank" href="pr_{{5000}}_{{30000}}.html" class="link">5000以上</a></li>
										</ul>
										<a target="_blank" href="d_{{53}}_{{35}}.html" class="nav_img">
											<img src="./Public/Home/img/menua2.png" alt="" />
										</a>
									</div>
								</div>
							</li>
							<li class="bar">
								<p class="nav_title type2">品牌分类</p>
								<div class="nav_page">
									<div class="nav_container">
										<p class="nav_name">品牌选择</p>
										<ul class="nav_type">
											{{foreach from="$brandData" value="$u"}}
											<li class="item"><a target="_blank" href="b_{{$u['bid']}}.html" class="link">{{$u['bname']}}</a></li>
											{{endforeach}}
										</ul>
										<a target="_blank" href="d_{{54}}_{{35}}.html" class="nav_img">
											<img src="./Public/Home/img/menua7.png" alt="" />
										</a>
									</div>
								</div>
							</li>
							<li class="bar">
								<p class="nav_title type3">热销商品</p>
								<div class="nav_page">
									<div class="nav_container">
										<p class="nav_name">热销商品</p>
										<ul class="nav_type">
											{{foreach from="$commodData" value="$u"}}
											<li class="item"><a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html" class="link">{{$u['coname']}}</a></li>
											{{endforeach}}
										</ul>
										<a target="_blank" href="d_{{55}}_{{35}}.html" class="nav_img">
											<img src="./Public/Home/img/menua3.png" alt="" />
										</a>
									</div>
								</div>
							</li>
							{{foreach from="$cateName" $key="$k" value="$u"}}
							<li class="bar">
								<p class="nav_title type{{$k+4}}">{{$u['cname']}}</p>
								<div class="nav_page">
									<div class="nav_container">
										<p class="nav_name">{{$u['cname']}}</p>
										<ul class="nav_type">
											{{foreach from="$u['son']" value="$v"}}
											<li class="item"><a target="_blank" href="c_{{$v['cid']}}.html" class="link">{{$v['cname']}}</a></li>
											{{endforeach}}
										</ul>
										<a target="_blank" href="d_{{53+$k}}_{{35}}.html" class="nav_img">
											<img src="./Public/Home/img/menua{{$k+4}}.png" alt="" />
										</a>
									</div>
								</div>
							</li>
							{{endforeach}}
						</ul>
					</div>
					<!--菜单栏结束-->
					<!--大图滚动-->
					<div class="big_img">
						<img src="./Public/Home/img/1466739289056duanwu423.jpg" alt="" />
						<img src="./Public/Home/img/1469157472286PCN4.jpg" alt="" />
						<img src="./Public/Home/img/1470017216168PCaoyun.jpg" alt="" />
						<img src="./Public/Home/img/1470110176769PC-N4s0811.png" alt="" />
						<img src="./Public/Home/img/1466739289056duanwu423.jpg" alt="" />
						<img src="./Public/Home/img/1470110176769PC-N4s0811.png" alt="" />
						<ul id="ul">
							<li></li>
							<li></li>
							<li></li>
							<li></li>
							<li></li>
							<li></li>
						</ul>
						<div id="btn">
							<div id="btn_l"><span></span></div>
							<div id="btn_r"><span></span></div>
						</div>
					</div>
					<script type="text/javascript">
				$(function(){
					$(".big_img").hover(function(){
						clearInterval(timer);
						$("#btn").fadeIn(300);
					},function(){
						timer=setInterval(run,2000);
						$("#btn").fadeOut(300);
					})
					var num=0;
					function run(){
						num++;
						if(num==6){num=0;}
						$(".big_img img").eq(num).fadeIn(500).siblings("img").fadeOut(500);
						$("#ul li").eq(num).css({background:"red"}).siblings().css({background:"#ccc"});
					}
					timer=setInterval(run,2000);

					$("#ul li").mouseover(function(){
						num=$(this).index();
						$(".big_img img").eq(num).fadeIn(500).siblings("img").stop().fadeOut(500);
						$("#ul li").eq(num).css({background:"red"}).siblings().stop().css({background:"#ccc"});
					})
					var c=0;
					$("#btn_l").click(function(){
//						点击限制，两秒一次
						if(c==1){return;}
						c=1;
						setTimeout(function(){c=0;},1000);
						num--;
						if(num==-1){num=5;}
						$(".big_img img").eq(num).fadeIn(500).siblings("img").fadeOut(500);
						$("#ul li").eq(num).css({background:"red"}).siblings().css({background:"#ccc"});
					})
					var c=0;
					$("#btn_r").click(function(){
						if(c==1){return;}
						c=1;
						setTimeout(function(){c=0;},1000);
						num++;
						if(num==6){num=0;}
						$(".big_img img").eq(num).fadeIn(500).siblings("img").fadeOut(500);
						$("#ul li").eq(num).css({background:"red"}).siblings().css({background:"#ccc"});
					})
				})
			</script>
					<!--大图滚动-->
				</div>
			</div>
		</div>
		<!--中部大图轮播区域-->
		<!--主题馆区域-->
		<div id="brands">
			<h2 class="title">主题馆</h2>
			<div class="brands_list">
				<div class="item ap">
					<a target="_blank" href="iphone.html" class="link">
					<div class="img"></div>
					<div class="name"></div></a>
				</div>
				<div class="item ss">
					<a target="_blank" href="samsung.html" class="link">
					<div class="img"></div>
					<div class="name"></div></a>
				</div>
				<div class="item mi">
					<a target="_blank" href="mi.html" class="link">
					<div class="img"></div>
					<div class="name"></div></a>
				</div>
				<div class="item mz">
					<a target="_blank" href="meizu.html" class="link">
					<div class="img"></div>
					<div class="name"></div></a>
				</div>
				<div class="item hw">
					<a target="_blank" href="huawei.html" class="link">
					<div class="img"></div>
					<div class="name"></div></a>
				</div>
			</div>
		</div>
		<!--主题馆区域-->
		<!--中部主要区域-->
		<div id="center">
			<div class="goods">
				<!--商品专区-->
				<div class="goods_1200">
					<!--手机专区-->
					<div class="goods_floor" id="phone">
						<!--专区名称-->
						<div class="floor_name">
							<h2 class="floor_title">手机专区</h2>
							<ul class="tab_list">
								{{foreach from="$mobelName"  value="$u"}}
								<li class="tab_list_item">{{$u['cname']}}</li>
								{{endforeach}}
							</ul>
						</div>
						<!--商品部分-->
						<div class="goods_list">
							<!--左侧广告-->
							<div class="goods_ad">
								<a target="_blank" href="d_{{49}}_{{39}}.html"><img src="./Public/Home/img/160420144405175828.jpg"/></a>
							</div>
							<!--右侧商品-->
							<div class="goods_tab">
								<ul class="goods_ul">
									{{foreach from="$mobileData1" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
								<ul class="goods_ul">
									{{foreach from="$mobileData2" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
								<ul class="goods_ul">
									{{foreach from="$mobileData3" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
								<ul class="goods_ul">
									{{foreach from="$mobileData4" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
								<ul class="goods_ul">
									{{foreach from="$mobileData5" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
								<ul class="goods_ul">
									{{foreach from="$mobileData6" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
								<ul class="goods_ul">
									{{foreach from="$mobileData7" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
							</div>
						</div>
					</div>
					<!--hover切换效果-->
					<script type="text/javascript">
						$(function(){
							$(".tab_list_item").mouseover(function(){
								var num=$(this).index(".tab_list_item")
								$(".goods_ul").eq(num).fadeIn(300).siblings().stop().fadeOut(300);
							});
						})
					</script>
					<!--手机专区-->
					<!--平板专区-->
					<div class="goods_floor" id="parts">
						<!--专区名称-->
						<div class="floor_name">
							<h2 class="floor_title">平板专区</h2>
						</div>
						<!--商品部分-->
						<div class="goods_list">
							<!--左侧广告-->
							<div class="goods_ad">
								<a target="_blank" href="d_{{50}}_{{5}}.html"><img src="./Public/Home/img/160527105123724634.jpg"/></a>
							</div>
							<!--右侧商品-->
							<div class="goods_tab">
								<ul class="goods_ul">
									{{foreach from="$pingbanData" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
							</div>
						</div>
					</div>
					<!--平板专区-->
					<!--智能专区-->
					<div class="goods_floor" id="Intelligent">
						<!--专区名称-->
						<div class="floor_name">
							<h2 class="floor_title">智能专区</h2>
						</div>
						<!--商品部分-->
						<div class="goods_list">
							<!--左侧广告-->
							<div class="goods_ad">
								<a target="_blank" href="d_{{51}}_{{18}}.html"><img src="./Public/Home/img/160420144546840731.jpg"/></a>
							</div>
							<!--右侧商品-->
							<div class="goods_tab">
								<ul class="goods_ul">
									{{foreach from="$zhinengData" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
							</div>
						</div>
					</div>
					<!--智能专区-->
					<!--配件专区-->
					<div class="goods_floor" id="parts">
						<!--专区名称-->
						<div class="floor_name">
							<h2 class="floor_title">配件专区</h2>
						</div>
						<!--商品部分-->
						<div class="goods_list">
							<!--左侧广告-->
							<div class="goods_ad">
								<a target="_blank" href="d_{{52}}_{{30}}.html"><img src="./Public/Home/img/160420144507029484.jpg"/></a>
							</div>
							<!--右侧商品-->
							<div class="goods_tab">
								<ul class="goods_ul">
									{{foreach from="$peijianData" value="$u"}}
									<li class="goods_li">
										<div class="image">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												<img src="{{$u['colistimg']}}" alt="" width="140px" height="140px" />
											</a>
										</div>
										<p class="name">
											<a target="_blank" href="d_{{$u['coid']}}_{{$u['shop_category_cid']}}.html">
												{{$u['coname']}}
											</a>
										</p>
										<p class="info">新品已到货 限量抢购 先购先得 免邮费</p>
										<div class="price">
											<p class="nowprice">会员价￥<span>{{$u['comallpr']}}</span></p>
										</div>
									</li>
									{{endforeach}}
								</ul>
							</div>
						</div>
					</div>
					<!--配件专区-->
				</div>
				<!--商品专区专区-->
			</div>
		</div>
		<!--中部主要区域-->
		<!--底部区域-->
		{{include file="../Common/footer"}}
		<!--底部区域-->
	</body>
</html>
